<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>固定背景</title>
		<style>
			#d1{
				background-color: aquamarine;
				height: 6000px;
				width: 5000px;
				background-image: url(../images/bitbug_favicon.ico);
				background-repeat: no-repeat;
				/*让图片固定在窗口*/
				background-attachment: fixed;
			}
		</style>
	</head>
	<body>
		<div id="d1">
			big div
		</div>
	</body>
</html>